<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../../style/common.css" />
<script src="../../js/jquery-2.0.2.min.js"></script>
<title>医療安全支援センター検索</title>
<script type="text/javascript">
function onLoad() {
	window.android.doGetIRyoAnZenAreaList();
}


function setArea() {
	var jouhou = window.android.getIRyoAnZenAreaList();
	var areaList = document.getElementById("areaselect");
	if (null == jouhou || jouhou.size() == 0) {
		areaList.disabled = true;

	} else {
		areaList.options.add(new Option("", ""));
		for ( var i = 0; i < jouhou.size(); i++) {
			areaList.options.add(new Option(jouhou.get(i), jouhou.get(i)));
		}
	}
	window.android.stopProgressBar();
}

function changed() {
	var areaList = document.getElementById("areaselect");
	var curstr = areaList.value;
	window.android.doGetIRyoAnZenShiEnList(curstr);
}
	function setTable() {
		var jouhou = window.android.getIRyoAnZenShiEnList();
		var total = jouhou.size();
		var x = document.getElementById("jouhoutable");
		for ( var j = x.rows.length - 1; j > 0; j--) {
			x.deleteRow(j);
		}
		for ( var i = 0; i < total; i++) {
			var x = document.getElementById("jouhoutable").insertRow(i + 1);
			var y1 = x.insertCell(0);
			y1.innerHTML = jouhou.get(i).getSite();
			var y2 = x.insertCell(1);
			y2.innerHTML = jouhou.get(i).getAppointmentTime();
			var y3 = x.insertCell(2);
			y3.innerHTML = jouhou.get(i).getAppointmentType();
			var y4 = x.insertCell(3);
			y4.innerHTML = jouhou.get(i).getTelephoneFaxNo();
		}
		window.android.stopProgressBar();
	}
</script>
</head>

<body onload="onLoad()">
	<table width="100%" border="0">
		<tr>
			<td colspan="2"><b>医療安全支援センター検索</b>
				<hr class="title_divison medical_theme_background_color" /></td>
		</tr>
		<tr>
			<td>ここから医療安全支援センターが検索できます。</td>
		</tr>
		<tr>
			<td colspan="2">
				<table width="100%" border="0">
					<tr>
						<td  colspan="2"><a>都道府県を選択してください</a><br /> <select id="areaselect"
							onchange="changed()"></select></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td><br />
				<table border="1" cellpadding="0"
					style="border-collapse: collapse; border: none; background: #ffffff; font-size: 12px;"
					id="jouhoutable">
					<tr>
						<td width="30%" align="center">施設名</td>
						<td width="30%" align="center">受付曜日・時間</td>
						<td width="20%" align="center">受付方法</td>
						<td width="25%" align="center">電話・ＦＡＸ</td>
					</tr>
					<tr>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td><br />
				<table width="100%" border="0">
					<tr>
						<td>
							<div class="back_button"
								onclick="location.href='S3-1110-3.html';">&lt;&nbsp;もどる</div>
						</td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
